package com.dbz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("customerorder")
public class CustomerOrder {
    @TableId(type = IdType.UUID,value = "cid")
    private String cid;
    @TableField(value = "proname")
    private String proname;//商品名称
    @TableField(value = "bname")
    private String bname;//客户名称
    @TableField(value = "salenumber")
    private String salenumber;//销售数量
    @TableField(value = "shoujia")
    private String shoujia;//售价
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "saleTime")
    private Date saleTime;//售出时间
}
